package org.micro.alibaba.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author keven
 * @date 2025-07-03 10:23 上午
 * @Description
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="item")
public class Item implements Serializable {

    private static final long serialVersionUID = 2826612917798045143L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private BigDecimal price;

    private Integer num;

}
